<%-- 
    Document   : grupo_herramienta
    Created on : 18-jun-2010, 12:12:36
    Author     : FREDY
--%>

<%@include file="ValidarSession.jsp"%>
<%@include file="cabecera.jsp" %>
<table align="center" width="960" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<form name="form1" method="post" action="GrupoBuscarServlet">
  <tr>
    <td rowspan="5" width="200">&nbsp;</td>
    <td colspan="4">&nbsp;</td>
    <td rowspan="5" width="200">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="4"><div align="center">Mantenimiento de Gupos de Herramientas</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Buscar por nombre:</td>
    <td><input name="nombre" type="text" id="nombre"></td>
    <td><input type="submit" name="Submit" value="Buscar"></td>
    <td><input type="button" name="Submit" value="Nuevo" onclick="window.location='grupoAgregar.jsp'"></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  </form>
</table>

<table width="960" border="0" cellspacing="0" cellpadding="1" bordercolor="#999999" align="center" bgcolor="#ffffff">
  <tr  bgcolor="#0099FF" class="titulo">
    <th>Id</th>
    <th>Nombre</th>
    <th>Descripci&oacute;n</th>
    <th>Acciones</th>
  </tr>
     <%  int a = 1;
                String x = "";
    %>
  <c:forEach items="${grupo}" var="c">
              <%
                    if (a % 2 == 0) {
                        x = "bgcolor='#ECF5FF'";
                    } else {
                        x = "";
                    }
        %>
  <tr <%=x%>>
    <td>${c.idgrupo}</td>
    <td>${c.nombre}</td>
    <td>${c.descripcion}</td>
    <td><div align="center"><a href="   GrupoEditarServlet?idgrupo=${c.idgrupo}">Editar</a> - <a href="GrupoEliminarServlet?idgrupo=${c.idgrupo}">Eliminar</a> </div></td>
  </tr>
 <% a++;%>
</c:forEach>
</table>
<%@include file="pie.jsp" %>